package o;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

public class ami {
    private final Map<String, Object> ˊ = new HashMap();
    private final List<String> ˏ = new ArrayList();

    public ami ˎ(String str, String str2) {
        return ˎ(str, (Object) str2);
    }

    public ami ˎ(String str, long j) {
        return ˎ(str, Long.valueOf(j));
    }

    public ami ˊ(String str) {
        this.ˏ.add(str);
        this.ˊ.remove(str);
        return this;
    }

    public List<String> ˎ() {
        return Collections.unmodifiableList(new ArrayList(this.ˏ));
    }

    public Map<String, Object> ˋ() {
        Map hashMap = new HashMap(this.ˊ);
        for (Entry entry : hashMap.entrySet()) {
            Object value = entry.getValue();
            if (value instanceof byte[]) {
                byte[] bArr = (byte[]) value;
                entry.setValue(Arrays.copyOf(bArr, bArr.length));
            }
        }
        return Collections.unmodifiableMap(hashMap);
    }

    private ami ˎ(String str, Object obj) {
        this.ˊ.put(amm.ॱ(str), amm.ॱ(obj));
        this.ˏ.remove(str);
        return this;
    }
}
